/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.persistence.module;

import com.lap.auth.adapter.driving.persistence.module.po.ModulePo;
import com.lap.auth.domain.module.Module;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface ModuleConverter {

  @Mapping(target = "event", ignore = true)
  Module toDomain(ModulePo modulePo);

  List<Module> toDomains(List<ModulePo> list);

  ModulePo toPo(Module module);

  List<ModulePo> toPoList(List<Module> list);
}
